package com.hegaoye.controller;

import com.hegaoye.service.AccountService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/account")
@Slf4j
@Api(value = "账户控制器", description = "账户控制器")
public class AccountCtrl {
  @Autowired private AccountService accountService;

  @GetMapping(value = "/load")
  @ResponseBody
  public String load(String account) {
    String result = accountService.load(account);
    log.info(result);
    return result;
  }
}
